import axiosConfig from "./axiosConfig"

function getBookList(data) {
    return axiosConfig({
        url: "/books/queryBooks",
        method: "post",
        data
    })
}

function searchBook(data) {
    return axiosConfig({
        url: "/books/searchBooks",
        method: "post",
        data
    })
}

function addBook(data) {
    return axiosConfig({
        url: "/adminBook/addBook",
        method: "post",
        data
    })
}

function deleteBook(data) {
    return axiosConfig({
        url: "/adminBook/deleteBook",
        method: "post",
        data
    })
}

function updateBook(data) {
    return axiosConfig({
        url: "/adminBook/updateBook",
        method: "post",
        data
    })
}

export default {
    getBookList,
    searchBook,
    addBook,
    deleteBook,
    updateBook
}